#pragma once

#include "VUi.h"

class VButton;
class VAnimateComponent;
class VMarquee;
class VIndex;
class VMyZone;
class VVodWidget;

class VBottomButtons:
    public VUi
{
private:
    DISALLOW_ASSIGN_AND_COPY(VBottomButtons);
    IMPLEMENT_GETTHIS(VBottomButtons);

public:
    VBottomButtons(void);
    virtual ~VBottomButtons(void);

protected:
    static const int leftbtncount = 6,
                     rightbtncount = 6;
    static const int commonwidth = 70,
                     commonheight = 70,
                     xmargin = 1;

protected:
    VPicture* _lightbar, *_toplightbar, *_toplightbar_mask;
    VButton* _leftbuttons[leftbtncount];
    VButton* _rightbuttons[rightbtncount];
    VButton* _voded_mask;
    VVodWidget* _voded_widget;
    VAnimateComponent* _spinlogo;
    VMarquee* _marquee;
    VIndex* _index;
    VMyZone* _myzone;
protected:

    void setupBottomButtons();
    void setupLightbar();
    void setupSpinLogo();
    void setupTopLightbar();
    void setupMarquee();
    void setupIndex();
    void setupMyZone();
    void setupVodWidget();
    void connect();

public:
    //VMyZone* getZone() const;

protected:
    static bool switchVisibility(int, int, void*);
    static bool switchVodWidgetVisibility(int, int, void*);
};
